package net.madarco.phpsense;

import net.madarco.phpsense.util.InferenceUtil;

import org.eclipse.dltk.ti.GoalState;
import org.eclipse.dltk.ti.goals.GoalEvaluator;
import org.eclipse.dltk.ti.goals.IGoal;

public class TypeNameGoalEvaluator extends GoalEvaluator {
	private String typeName;

	public TypeNameGoalEvaluator(IGoal goal, String typeName) {
		super(goal);
		this.typeName = typeName;
	}

	public Object produceResult() {
		return InferenceUtil.fromTypeName(this.typeName);
	}

	public IGoal[] init() {
		return null;
	}

	public IGoal[] subGoalDone(IGoal subgoal, Object result, GoalState state) {
		return null;
	}
}